package com.xzy.config;

import com.xzy.entity.Content;
import com.xzy.entity.Report;
import com.xzy.service.ContentService;
import com.xzy.service.ReportService;
import com.xzy.util.WordUtils;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@SuppressWarnings("serial")
public class WordAction {
   /* @Autowired
    ReportService reportService;
    @Autowired
    ContentService contentService;
    private String filePath;
    private String fileName;
    private String fileOnlyName;
    public String createWord(int reportId)
    {
        Report report=reportService.getReport(reportId);
        List<Content> contentList=contentService.getContentByReport(reportId);
        Map<String,Object> dataMap=new HashMap<String,Object>();
        dataMap.put("reportTitle",report.getReportTitle());
        dataMap.put("contentList",contentList);
        filePath="D:/";
        fileOnlyName=report.getReportTitle()+report.getReportDate()+".doc";
        fileName=report.getReportTitle()+report.getReportDate()+".doc";
        WordUtils.
        }*/














}
